//
//  NSString+JwUI.h
//  JwPack
//
//  Created by 陈警卫 on 2024-07-16.
//

#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>

@interface NSString (JwUI)

/// 获取字符串尺寸
- (CGSize)jw_sizeForFont:(UIFont *)font expectSize:(CGSize)expectSize lineBreakMode:(NSLineBreakMode)lineBreakMode;

/// 获取字符串高度
- (CGFloat)jw_heightForWidth:(CGFloat)width font:(UIFont *)font;

/// 获取字符串高度，给定字体大小
- (CGFloat)jw_heightForWidth:(CGFloat)width fontsize:(CGFloat)fontsize;

/// 获取字符串宽度
- (CGFloat)jw_widthForHeight:(CGFloat)height font:(UIFont *)font;

/// 获取字符串宽度，给定字体大小
- (CGFloat)jw_widthForHeight:(CGFloat)height fontsize:(CGFloat)fontsize;

/// 获取UILabel高度
- (CGFloat)jw_heightForLabelWidth:(CGFloat)width font:(UIFont *)font;

/// 获取UILabel宽度
- (CGFloat)jw_widthForLabelHeight:(CGFloat)height font:(UIFont *)font;

@end

